import QtQuick 1.0
import "/usr/share/libsocmdc/kdeadmouseutils-build-desktop"
Item {
  signal allFinished()
  id:mainItem
  ShellInvoker {
    id : shellVlc
    onFinished : {
      console.log('#Vlc#>:onFinished ');
      mainItem.allFinished();
    }
    
    onOutputLineChanged : {
	console.log('#vlc#>: ' + outputLine);
    }
  }
  
  function playYTUrl(url){
      var mediaUrl = 'http://www.youtube.com/watch?v=' + url;
      console.log('URL YT<'+mediaUrl+'>');
      shellVlc.shellAction('vlc',['--avi-index','2',mediaUrl]);
  }
  
  
  function kill() {
    shellVlc.kill();
  }
   
   
}
